/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

_helo = _this select 0;
_num = 0;

for [{_n = 1},{_n <= (count RUM_THelAircraft)},{_n = _n + 1}] do {
	_lib = RUM_THelAircraft select (_n - 1);
	_libhelo = _lib select 0;
	if (_libhelo == _helo) then {
		_num = (_n - 1);
	};
};

/* delete all the markers that were created for this instance. */
_mkrname1 = format ["%1ingress",_helo];
_mkrname2 = format ["%1target",_helo];
_mkrname3 = format ["%1egress",_helo];
_mkrname4 = format ["%1ingress2",_helo];
_mkrname5 = format ["%1target2",_helo];
_mkrname6 = format ["%1egress2",_helo];
deletemarkerLocal _mkrname1;
deletemarkerLocal _mkrname2;
deletemarkerLocal _mkrname3;
deletemarkerLocal _mkrname4;
deletemarkerLocal _mkrname5;
deletemarkerLocal _mkrname6;

RUM_THelAircraft set [_num,"del"];
RUM_THelAircraft = RUM_THelAircraft - ["del"];
publicVariable "RUM_THelAircraft";

if(true)exitwith{};